﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Elderos.Highlight.Search;

namespace Elderos.Highlight
{
    public class BinomialResult : RuleResult
    {
        private readonly bool _success;

        public BinomialResult(string rulename, bool success)
            : base(new []{rulename})
        {
            _success = success;
        }

        public override IEnumerable<FactorValue> GetFactorValues()
        {
            yield return new FactorValue(RuleNames[0] + "_0", _success ? 0 : 1);
            yield return new FactorValue(RuleNames[0] + "_1", _success ? 1 : 0);
            //yield return new FactorValue(RuleName, _success ? 1 : -1);
        }
    }
}
